#
# Be sure to run `pod lib lint CocoabaseWechatSDK.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'CocoabaseWechatSDK'
  s.version          = '0.1.1'
  s.summary          = 'CocoabaseWechatSDK can export the WechatOpenSDK to swift as a framework module.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: CocoabaseWechatSDK can export the WechatOpenSDK to swift as a framework module.
                       DESC

  s.homepage         = 'https://gitlab.com/porsche-digital-china/ios/codebase/cocoabase'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'Theo Chen' => 'me@theochen.com' }
  s.source           = { :git => 'git@gitlab.com:porsche-digital-china/ios/codebase/cocoabase.git', :tag => 'WechatSDK-' + s.version.to_s }
  # s.social_media_url = 'https://twitter.com/theochen'

  s.ios.deployment_target = '10.0'

  s.cocoapods_version = '>= 1.8.0'
  s.static_framework = false
  s.prefix_header_file = false

  s.source_files = 'Cocoabase/WechatSDK/Classes/**/*.{m,h}'
  #s.exclude_files = "Cocoabase/WechatSDK/Classes/SwiftyRSA/SwiftyRSA+ObjC.swift"
  s.preserve_paths = [
    'Cocoabase/WechatSDK/README.md',
    'Cocoabase/WechatSDK/CHANGELOG.md'
  ]
  
  # 微信开放平台新增了微信模块用户统计功能，便于开发者统计微信功能模块的用户使用和活跃情况。开发者需要在工程中链接上:SystemConfiguration.framework, libz.dylib, libsqlite3.0.dylib, libc++.dylib, Security.framework, CoreTelephony.framework, CFNetwork.framework，CoreGraphics.framework。
  # 傻逼微信
  s.library = ['c++', 'sqlite3.0', 'z']
  s.frameworks = ['SystemConfiguration', 'Security', 'CoreTelephony', 'CFNetwork', 'CoreGraphics', 'WebKit']
  s.vendored_libraries = 'Cocoabase/WechatSDK/Frameworks/*.a'

  # s.resource_bundles = {
  #   'CocoabaseWechatSDK' => ['Cocoabase/WechatSDK/Assets/*.png']
  # }

  s.public_header_files = ['Cocoabase/WechatSDK/Classes/*.h']
  # s.frameworks = 'UIKit', 'MapKit'
  # s.framework = "Security"

  #s.dependency 'WechatOpenSDK', '~>1.8.4'

  
  s.pod_target_xcconfig = {
  }
end
